<template>
	<view class="materialsStyle">
		<view class="topSearch">
			<u-search placeholder="日照香炉生紫烟" v-model="keyword" :animation="false" :showAction="false"></u-search>
		</view>
		<!-- <view class="statistics">
			<view class="statistics_top">
				<uni-section title="数据统计" type="line"></uni-section>
				<text>2024-2-3</text>
			</view>
			<view class="statistics_flex">
				<view>
					<view class="statistics_view">
						<view class="textSize">
							22222
							<text class="textLeft">只</text>
						</view>
						<view class="textColor">啊撒大声地</view>
					</view>
				</view>
				<view>
					<view class="statistics_view">
						<view class="textSize">
							22222
							<text class="textLeft">只</text>
						</view>
						<view class="textColor">啊撒大声地</view>
					</view>
				</view>
				<view>
					<view class="statistics_view">
						<view class="textSize">
							22222
							<text class="textLeft">只</text>
						</view>
						<view class="textColor">啊撒大声地</view>
					</view>
				</view>
				<view>
					<view class="statistics_view">
						<view class="textSize">
							22222
							<text class="textLeft">只</text>
						</view>
						<view class="textColor">啊撒大声地</view>
					</view>
				</view>
				<view>
					<view class="statistics_view">
						<view class="textSize">
							22222
							<text class="textLeft">只</text>
						</view>
						<view class="textColor">啊撒大声地</view>
					</view>
				</view>
				<view>
					<view class="statistics_view">
						<view class="textSize">
							22222
							<text class="textLeft">只</text>
						</view>
						<view class="textColor">啊撒大声地</view>
					</view>
				</view>
				<view>
					<view class="statistics_view">
						<view class="textSize">
							22222
							<text class="textLeft">只</text>
						</view>
						<view class="textColor">啊撒大声地</view>
					</view>
				</view>
				<view>
					<view class="statistics_view">
						<view class="textSize">
							22222
							<text class="textLeft">只</text>
						</view>
						<view class="textColor">啊撒大声地</view>
					</view>
				</view>
			</view>
		</view -->

		<view class="distribution">
			<view class="distribution_top">
				<!-- <uni-section title="物资分布" type="line"></uni-section> -->
			</view>
			<mapCity message="Hello from I22ndex Page"></mapCity>
		</view>

		<!-- <view class="portion">
			<view class="portion_top">
				<uni-section title="物资种类占比" type="line"></uni-section>
			</view>
			<portion message="Hello from I22ndex Page"></portion>
		</view> -->
	</view>
</template>

<script>
import portion from './components/portion';
import mapCity from './components/map';
import { getStoreRelev } from '@/api/mappages/materials/materials.js';
export default {
	components: {
		portion,
		mapCity
	},
	data() {
		return {
			keyword: ''
		};
	},
	methods: {
		async ok() {
			let arr = await getStoreRelev();
			console.log(arr, '222');
		}
	},
	onLoad(options) {
		this.ok();
	}
};
</script>

<style scoped lang="scss">
.materialsStyle {
	background-color: #fff;
}
.topSearch {
	padding: 20rpx;
}
/deep/ .statistics_top .uni-section {
	background: linear-gradient(to bottom, #e5e7fd, #fff);
}

.statistics {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;

	.statistics_top {
		display: flex;
		flex-direction: row;
		align-items: center;
		background: linear-gradient(to bottom, #e5e7fd, #fff);
	}

	.statistics_flex {
		display: flex;
		flex-wrap: wrap;
	}
	.statistics_flex view {
		flex: 0 0 25%;
	}

	.statistics_view {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 20rpx;
		font-weight: bold;
	}

	.textColor {
		color: #c0c4cc;
		font-size: 24rpx;
	}

	.textLeft {
		font-size: 22rpx;
	}

	.textSize {
		font-size: 33rpx;
	}
}

.distribution {
	height: 600rpx;
}

.portion_top {
	background: linear-gradient(to bottom, #fee5e4, #fff);
}

/deep/ .portion_top .uni-section {
	background: linear-gradient(to bottom, #fee5e4, #fff);
}
</style>
